Optimal. Leaf size=116 \[ \frac {3 \sqrt {a} \text {ArcSin}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{4 d}+\frac {3 a \sqrt {\cos (c+d x)} \sin (c+d x)}{4 d \sqrt {a+a \cos (c+d x)}}+\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a+a \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2849, 2853,
222} \begin {gather*} \frac {3 \sqrt {a} \text {ArcSin}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{4 d}+\frac {a \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{2 d \sqrt {a \cos (c+d x)+a}}+\frac {3 a \sin (c+d x) \sqrt {\cos (c+d x)}}{4 d \sqrt {a \cos (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 2849
Rule 2853
Rubi steps
\begin {align*} \int \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)} \, dx &=\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a+a \cos (c+d x)}}+\frac {3}{4} \int \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)} \, dx\\ &=\frac {3 a \sqrt {\cos (c+d x)} \sin (c+d x)}{4 d \sqrt {a+a \cos (c+d x)}}+\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a+a \cos (c+d x)}}+\frac {3}{8} \int \frac {\sqrt {a+a \cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {3 a \sqrt {\cos (c+d x)} \sin (c+d x)}{4 d \sqrt {a+a \cos (c+d x)}}+\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a+a \cos (c+d x)}}-\frac {3 \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a}}} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{4 d}\\ &=\frac {3 \sqrt {a} \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{4 d}+\frac {3 a \sqrt {\cos (c+d x)} \sin (c+d x)}{4 d \sqrt {a+a \cos (c+d x)}}+\frac {a \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt {a+a \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.22, size = 91, normalized size = 0.78 \begin {gather*} \frac {\sqrt {a (1+\cos (c+d x))} \sec \left (\frac {1}{2} (c+d x)\right ) \left (3 \sqrt {2} \text {ArcSin}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right )+2 \sqrt {\cos (c+d x)} \left (2 \sin \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {3}{2} (c+d x)\right )\right )\right )}{8 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.21, size = 161, normalized size = 1.39
method | result | size |
default | \(\frac {\left (\cos ^{\frac {3}{2}}\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (-1+\cos \left (d x +c \right )\right )^{2} \left (2 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right ) \sin \left (d x +c \right )+3 \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+3 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right )\right )}{4 d \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \sin \left (d x +c \right )^{4}}\) | \(161\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 1059 vs.
\(2 (96) = 192\).
time = 0.63, size = 1059, normalized size = 9.13 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 98, normalized size = 0.84 \begin {gather*} \frac {\sqrt {a \cos \left (d x + c\right ) + a} {\left (2 \, \cos \left (d x + c\right ) + 3\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 3 \, \sqrt {a} {\left (\cos \left (d x + c\right ) + 1\right )} \arctan \left (\frac {\sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right )}{4 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\cos {\left (c + d x \right )} + 1\right )} \cos ^{\frac {3}{2}}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {a+a\,\cos \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________